<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
<head>
	<%@include file="/WEB-INF/views/include.jsp"%>
</head>
<body>
<div class="page-container">
	<form action="${base}/admin/partner/listByCondition.do" method="post" class="form form-horizontal" id="form-industry-list" name="form-industry-list">
		<div class="text-c">
			<input type="text" name="searchText" id="searchText" placeholder=" 合伙人姓名" style="width:550px" class="input-text" value="${searchText}">
			<button name="" id="searchButton" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜合伙人</button>
		</div>
	</form>
	<div class="cl pd-5 bg-1 bk-gray mt-20">
		<span class="r">共有数据：<strong>${varList.size()}</strong> 条</span>
	</div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-hover table-sort">
			<thead>
				<tr class="text-c">
					<th width="25"><input type="checkbox" name="" value=""></th>
					<th width="120">序号</th>
					<th>姓名</th>
					<th width="180">手机号码</th>
					<th width="200">户籍所在地</th>
					<th width="200">注册时间</th>
					<th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:choose>
					<c:when test="${not empty varList}">
						<c:forEach items="${varList}" var="var" varStatus="status">
							<tr class="text-c">
								<td><input type="checkbox" value="" name=""></td>
								<td>${status.index+1}</td>
								<td>${var.name}</td>
								<td>${var.mobilephone}</td>
								<td>${var.address}</td>
								<td><fmt:formatDate value="${var.created}"  pattern="yyyy-MM-dd HH:mm:ss" type="date"/></td>
								<td>
									<a class="btn btn-primary radius"
										href="javascript:;"
										onclick="history_view(${var.userId})"
									>投递记录</a>
									<a class="btn btn-primary radius"
										href="javascript:;"
										onclick="partner_view(${var.userId})"
									>察看详情</a>
								</td>
							</tr>
						</c:forEach>
					</c:when>
				</c:choose>
			</tbody>
		</table>
	</div>
</div>
<script type="text/javascript" src="${base}/common/js/partner/partner.js?v=${v}"></script>
<script type="text/javascript">
var contextPath = "${base}";

$('.table-sort').dataTable({
	"aaSorting": [[ 1, "asc" ]],//默认第几个排序
	"bStateSave": true,//状态保存
	"aoColumnDefs": [
	  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
	  //{"orderable":false,"aTargets":[0,6]}// 不参与排序的列
	]
});
</script>
</body>
</html>